package com.bdth.bdthiss.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户关注的合同
 * </p>
 *
 * @author LGP
 * @since 2019-09-06
 */
@TableName("sys_user_contract")
public class UserContract implements Serializable {

    private static final long serialVersionUID = 1L;

    public UserContract(Integer userid, Integer contractid) {
        this.userid = userid;
        this.contractid = contractid;
    }

    public UserContract() {
    }

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户ID
     */
    private Integer userid;
    /**
     * 合同编号
     */
    private Integer contractid;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getContractid() {
        return contractid;
    }

    public void setContractid(Integer contractid) {
        this.contractid = contractid;
    }

    @Override
    public String toString() {
        return "UserContract{" +
        ", id=" + id +
        ", userid=" + userid +
        ", contractid=" + contractid +
        "}";
    }
}
